package com.goods.service;

import com.goods.common.model.business.ProductCategory;
import com.goods.common.vo.business.ProductCategoryTreeNodeVO;
import com.goods.common.vo.system.PageVO;

import java.util.List;


public interface ProductCategoryService {
    //加载分类数据
    PageVO getCategoryTree(Integer pageNum, Integer pageSize);


    List<ProductCategoryTreeNodeVO> getParentCategoryTree();

    void add(ProductCategory productCategory);

    ProductCategory edit(Long id);

    void update(Long id, ProductCategory productCategory);

    boolean delete(Long id);
}
